﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<%
    
    if (string.IsNullOrEmpty(Request.QueryString["id"])) {

        foreach (ControlPoint.ControlAPI.Device device in ControlServer.MvcApplication.ControlMain.Devices.Values) {
            devices.Add(device.ID, device.Name);
            Html.ActionLink(Html.Encode(device.Name + " (" + device.ID + ")"), HttpUtility.UrlEncode(ControlServer.Utilities.base64Encode(device.ID)), "Device/Settings");
        }

    } else {

    }   
    
%>
</asp:Content>
